package com.yixiang.np.model;

import java.util.ArrayList;
import java.util.List;

public class JqGrid implements java.io.Serializable {
	
	private Long records;//总记录数
	private int page;//当前页
	private int total;//总页数
	private List rows = new ArrayList();//Json数据
	public Long getRecords() {
		return records;
	}
	public void setRecords(Long records) {
		this.records = records;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getTotal() {
		return total;
	}
	public void setTotal(int rows) {
		long totalPages = (this.records + rows - 1) / rows; //总页数
		this.total = (int) totalPages;
	}
	public List getRows() {
		return rows;
	}
	public void setRows(List rows) {
		this.rows = rows;
	}
	 
	
}
